<!DOCTYPE html>
<html>
<head>
	<title></title>
	<style type="text/css">
		p{
			color: red;
			font-size: 30px;
			background-color: yellow;
			text-align: center;
		}

	</style>

	<script type="text/javascript">
		function test() {
			// console.log(123456);
			alert(1234);
		}

	</script>

</head>
<body>
<p onclick="test()">我是一个段落</p>
</body>
</html>